﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchemaMonitor.json
{
	public class CSoftAlbum : CSoft
	{
		public CSoftAlbum(CNodeBasic root, CUser cache) : base(root, cache)
		{
		}

		public string Type { get { return GetStr("type"); } }
		public string Privacy { get { return GetStr("privacy"); } }
		public string Name { get { return GetStr("name"); } }
		public long? CoverPhotoId { get { return GetLong("cover_photo"); } }
		public int Count { get { return GetInt("count"); } }
		public string Description { get { return GetStr("description"); } }
		public CSoftCommentList Comments { get { return GetComments(); } }

		public string Size { get { return Framework.CUtilities.CountSummary(Count, "photo", string.Empty); } }
	}
}
